package cn.bluethink.eguan.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bluethink.eguan.core.entity.EgGoodsHistoryEntity;
import cn.bluethink.eguan.core.entity.GoodsHistoryEntity;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.3.0
 * @brief 驿馆+产品
 * @note 修订历史：
 *       1.wanglei于2018/11/28设计并构建初始版本v0.3.0
 */
public interface EgGoodsHistoryMapper extends Mapper<EgGoodsHistoryEntity>{

    /**
     * 根据过滤条件查询
     * 
     * @param whereSql
     * @return
     * @throws Exception
     */
    List<GoodsHistoryEntity> selectGoodsHistoryByCondition(@Param("whereSql") String whereSql) throws Exception;
    
    /**
     * 批量保存历史商品
     * 
     * @param goodsList
     * @return
     * @throws Exception
     */
    Integer insertList(@Param("goodsList") List<EgGoodsHistoryEntity> goodsList) throws Exception;
}
